<div class="container">
    <div id="content">
      <h2 class="title">Import PA File</h2>
    	<form class="frm" name="frmPAImport" id="frmPAImport" method="post"  action="<?php echo $_SERVER['PHP_SELF']; ?>?PAcode=PA&action=SaveImport" enctype="multipart/form-data" >
      	<fieldset>
          <ul>
            <li>
              <label>Job tilte</label>
              <select class="slt sltPosition" name ="jobTitle">
                <option value="ENGINEER">Engineer</option>
                <option value="LEADER">Team leader</option>
                <option value="MANAGER">Manager</option>
                <option value="DIRECTOR">Director</option>
                <option value="STAFF">Staff</option>
                <option value="IT">IT</option>
              </select>
            </li>
            <li>
              <label>File Import</label>
              <input type="file" name="fImportFile" id="fImportFile" class="slt sltFile"/>
            </li>
            <li class="action">
              <input type="submit" value="Save"  class="btnSubmit"/>
              <a href="#" title="Cancel" class="btnCancel">Cancel</a>
            </li>
          </ul>
         </fieldset>
      </form>
    </div>
  </div>
<?php if (isset($_GET['message'])) {

		$expString  = $_GET['message'];
?>
		<font size="-1" face="Verdana, Arial, Helvetica, sans-serif">
<?php echo $expString; ?>
		</font>
<?php }	?>
<?php if(count($records)>0): ?>
  <div id="content">
      <h2 class="title">All PA Results</h2>
      	<table width="1000" class="dataTable" cellpadding="0" cellspacing="0" border="0">
      	<colgroup>
          	<col width="" />
            <col width="15%" />
            <col width="" />
            <col width="" />
            <col width="" />
            <col width="" />
            <col width="" />
            <col width="" />
            <col width="" />
            <col width="" />
            <col width="" />
            <col width="" />
            <col width="" />
            <col width="" />
            <col width="" />
		<col width="" />
          </colgroup>

      	<thead>
      	<tr>
	      	<th>
	      		ID
	      	</th>
	      	<th>
	      		Employee Name
	      	</th>
	      	<th>
	      		New position level
	      	</th>
	      	<th>
	      		Current salary (Net)
	      	</th>
	      	<th>
	      		Current salary (Gross)
	      	</th>
	      	<th>
	      		Current salary for labor contract
	      	</th>
	      	<th>
	      		New salary (Net)
	      	</th>
	      	<th>
	      		Amount is based on PA result
	      	</th>
	      	<th>
	      		Adjust to map with new position/ level
	      	</th>
	      	<th>
	      		New salary (Gross)
	      	</th>
	      	<th>
	      		New salary for labor contract
	      	</th>
	      	<th>
	      		Final Rating
	      	</th>
	     </tr>
      	</thead>
      	<?php $odd = 'odd'; ?>
      	<?php foreach($records as $record){?>
          <tr class="<?php echo $odd=='odd'?'odd':'even';?>">
          	<td >
	      		<?php echo $record->getEmployeeCode(); ?>
	      	</td>
	      	<td class="name">
	      		<?php echo $record->getEmpName(); ?>
	      	</td>
	      	<td>
	      		<?php echo $record->getNewLevel();?>
	      	</td>
	      	<td>
	      		<?php echo number_format((double)$record->getCurrentNetSalary()); ?>
	      	</td>
	      	<td>
	      		<?php echo number_format((double)$record->getCurrentGrossSalary()); ?>
	      	</td>
	      	<td>
	      		<?php echo number_format((double)$record->getCurrentContractSalary()); ?>
	      	</td>
	      	<td>
	      		<?php echo number_format((double)$record->getNewNetSalary()); ?>
	      	</td>
	      	<td>
	      		<?php echo number_format((double)$record->getPAAdjust()); ?>
	      	</td>
	      	<td>
	      		<?php echo number_format((double)$record->getPALevelAdjust()); ?>
	      	</td>
	      	<td>
	      		<?php echo number_format((double)$record->getNewGrossSalary()); ?>
	      	</td>
	      	<td>
	      		<?php echo number_format((double)$record->getNewContractSalary()); ?>
	      	</td>
	      	<td>
	      		<?php echo $record->getPAScore(); ?>
	      	</td>
          </tr>
         <?php $odd = $odd == 'odd'?'even':'odd'; ?>
         <?php } ?>
         </table>
      </form>
    </div>
  </div>
  <?php endif; ?>
